MKCONF_DIR = ../../../mkconfig
LIBC_DIR := ../../../libc

include $(MKCONF_DIR)/compile.mk
CONFIG_DIR := $(TOPDIR)/../..
ifneq ($(MAKECMDGOALS),clean)
AUTOCONF_MK = $(BUILD_DIR)\autoconfig.mk
sinclude $(AUTOCONF_MK)
endif
#CONF_FILES += $(CONFIG_DIR)/configs/$(BOARD)/config.mk
CONF_FILES += $(CONFIG_DIR)/../base/model/$(BOARD)/config/config.mk

export CPPFLAGS += -I$(CONFIG_DIR)/include -I$(CONFIG_DIR)/../base/model/$(BOARD)/config \
	-I$(CONFIG_DIR)/../base/include -I$(CONFIG_DIR)/../base/include/arch/$(ARCH)

COBJS-y := pkscv1_5.o  
COBJS-y += sec_$(ARCH).o hsm_init.o sec_debug.o
COBJS-$(CONFIG_PCI_KEY) += keyoper.o  dukpt.o pinmac.o tr31.o keymgt.o cert_recover.o
COBJS-$(CONFIG_SEC_READER) += sec_reader.o

include $(MKCONF_DIR)/subdir.mk
include $(MKCONF_DIR)/operation.mk

